﻿
@using Model
@model List<config_public_char>
<link href="~/bootstrap/dist/css/bootstrap.css" rel="stylesheet" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="~/css/table.css" rel="stylesheet" />

    <script src="~/javascript/comm/comm.js"></script>


    <script src="~/javascript/jquery-1.7.2.js"></script>

    <script type="text/javascript">
        function deletePublicChar(id) {
            $.ajax({
                url: "http://127.0.0.1:8080/HR_Fist/customiz/customizAction!doDeletePublicChar",
                data: "cpc.pbcId=" + id,
                dataType: "text",
                success: function () {
                    alert("删除成功！");
                    location.reload();
                },
                type: "post"
            });
        }
    </script>
</head>
<body>
    <form method="post" action="../customiz/customizAction!findPublicChar">
        <table width="100%">
            <tr>
                <td>
                    <font color="black">
                        您正在做的业务是：人力资源--客户化设置--人力资源档案管理设置--公共属性设置
                    </font>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <a href="/client/public_char_add">添加</a>
                </td>
            </tr>
        </table>
        <table width="100%" border="1" cellpadding=0 cellspacing=1
               bordercolorlight=#848284 bordercolordark=#eeeeee
               class="TABLE_STYLE1">
            <thead>
                <tr>
                    <td width="49%" class="TD_STYLE1">
                        属性种类
                    </td>
                    <td width="44%" class="TD_STYLE1">
                        属性名称
                    </td>
                    <td width="7%" class="TD_STYLE1" align="center">
                        操作
                    </td>
                </tr>
            </thead>
            @foreach (config_public_char item in Model)
            {
<tr>
    <td>@item.attribute_kind</td>
    <td>@item.attribute_name</td>
    <td><a asp-controller="client" asp-action="public_charDelete" asp-route-Id="@item.Id" onclick="return confirm('确定删除吗')">删除</a></td>
</tr>
       }
        </table>
        <p>

    </form>

</body>
</html>

